<?php
/**
 * Homepage
 *  
 * @author Joseph Chereshnovsky <joseph.chereshnovsky@gmail.com>
 * @version 1.0
 */
// $this->headTitle( $this->_('Homepage') . ' :: ');
// $this->placeholder('title')->set( $this->_('Welcome') );
$this->headLink()->appendStylesheet(APP_URL . '/css/index/homepage.css');
?>

<div id="quick-start">

	<h1><?php echo $this->_('Start search right now') ?></h1>

	<p>
	<?php echo $this->_('Are you searching for correct translation? Use simple and easy way to make a rigth decision, just'); ?>
	</p>

	<form action="<?php echo APP_URL ?>/translation/search/" method="post">
		<div id="homepage-search-form">
			<script type="text/javascript">
				
				var enterRequestPhrase = '<?php echo $this->_('enter your phrase here...') ?>';
				
				function enableControl(textField)
				{
					if (textField.value == enterRequestPhrase) {
						textField.value = '';
						textField.className = '';
					}
				}
				
				function disableControl(textField)
				{
					if (textField.value == '') {
						textField.value = enterRequestPhrase;
						textField.className = 'disabled';
					}
				}
				
				window.onload = function () {
					disableControl(document.getElementById('homepage-search-field'));
				}
				
			</script>
		
			<input id="homepage-search-field" name="search-field" type="text" value="" onblur="disableControl(this)" onfocus="enableControl(this)"  />
			<input id="homepage-search-submit" type="submit" value="<?php echo $this->_('Search') ?>" />
		</div>
	</form>

</div>
<?php /* ?>
<div class="left-column">
	<h2><?php echo $this->_('Latest Discussions') ?></h2>
	<p>
		You can find the latest discussion about translation here from the translators all over the world.
	</p>
	<p>
		<a href="#">see other discussions...</a>
	</p>
</div>

<div class="right-column">
	<h3>What's new?</h3>
	<p>
		<strong>12/01/2009</strong> Congratulation! New Year 2009!
	</p>
</div>
<?php */ ?>